class People:
    # 魔术方法, 你没调用,python自己调用的
    def __init__(self):
        print('init........')
        pass

    def show(self):
        print('show.......')


p1 = People()
print(p1)

print(id(p1))
print(hex(35519904))

# print(p1.name) #'People' object has no attribute 'name'

# 对象属性的动态赋值
p1.name = 'zhangsan'

print(p1.name)

import gc
import sys
# gc.set_debug(True)
# gc.enable()
# r = gc.collect()
# print(r)

print(gc.get_count())
print(sys.getrefcount(p1))
